package com.p2p.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class RedirectContoller {

	@RequestMapping(value="/redirect")
	public String redirect(String backUrl){
		if(backUrl == null || "".equals(backUrl) ){
			return "redirect:http://user.yiqihao.com:8080/user-center/home/index.html";
		}else
			return "redirect:"+backUrl;
	}
}
